package com.landscope.issue.bean;


public enum E_ALARMVAL_LEVEL {
    //1-波速变化，2-微裂隙，3-环境变量
    low(1, "low"),
    middle(2, "middle"),
    high(3, "high"),
    ;
    private Integer value;
    private String name;

    E_ALARMVAL_LEVEL(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static E_ALARMVAL_LEVEL newValueOf(Integer value) {
        if (value == null) {
            return null;
        }
        for (E_ALARMVAL_LEVEL status : E_ALARMVAL_LEVEL.values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        throw new IllegalArgumentException("No enum new value " + value);
    }
}
